package net.sudot.chess.config;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import net.sudot.chess.business.wechat.config.WechatProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * 系统属性
 *
 * @author tangjialin on 2018-05-21.
 */
@Getter
@Setter
@Accessors(chain = true)
@Component
@ConfigurationProperties(prefix = "system.config")
public class SystemProperties {
    /** 当前系统版本 */
    private String version;
    /** 文件存放路径 */
    private String uploadPath;
    /** 网址 */
    private String website;
    /** JWT密钥 */
    private String jwtSecret;
    /** 用户默认密码 */
    private String defaultPassword;
    /** 人民币和金豆比例(即1元人名币能值1*exchangeRate金豆) */
    private int exchangeRate;
    /** 注册初始积分 */
    private int registerPoint;
    /** 注册初始余额 */
    private BigDecimal registerBalance;
    /** 订单过期时间(单位:分钟) */
    private int orderExpireTime;
    /** 排行榜周期 */
    private Cycle rankCycle;
    /** 佣金结算周期 */
    private Cycle brokerageCycle;
    /** 微信配置 */
    private WechatProperties wechat;

}
